package com.ruoyi.spspublic.service.impl;
import com.ruoyi.spspublic.domain.TDwMasterimage;
import com.ruoyi.spspublic.mapper.TDwMasterimageMapper;
import com.ruoyi.spspublic.service.ITDwMasterimageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 图片维护Service业务层处理
 *
 * @author ruoyi
 * @date 2022-09-16
 */
@Service
public class TDwMasterimageServiceImpl implements ITDwMasterimageService {
  @Autowired private TDwMasterimageMapper tDwMasterimageMapper;

  /**
   * 查询图片维护
   *
   * @param ctId 图片维护ID
   * @return 图片维护
   */
  @Override
  public TDwMasterimage selectTDwMasterimageById(String ctId) {
    return tDwMasterimageMapper.selectTDwMasterimageById(ctId);
  }

  /**
   * 查询图片维护列表
   *
   * @param tDwMasterimage 图片维护
   * @return 图片维护
   */
  @Override
  public List<TDwMasterimage> selectTDwMasterimageList(TDwMasterimage tDwMasterimage) {
    return tDwMasterimageMapper.selectTDwMasterimageList(tDwMasterimage);
  }

  /**
   * 新增图片维护
   *
   * @param tDwMasterimage 图片维护
   * @return 结果
   */
  @Override
  public int insertTDwMasterimage(TDwMasterimage tDwMasterimage) {
    return tDwMasterimageMapper.insertTDwMasterimage(tDwMasterimage);
  }

  /**
   * 修改图片维护
   *
   * @param tDwMasterimage 图片维护
   * @return 结果
   */
  @Override
  public int updateTDwMasterimage(TDwMasterimage tDwMasterimage) {
    return tDwMasterimageMapper.updateTDwMasterimage(tDwMasterimage);
  }

  /**
   * 批量删除图片维护
   *
   * @param ctIds 需要删除的图片维护ID
   * @return 结果
   */
  @Override
  public int deleteTDwMasterimageByIds(String[] ctIds) {
    return tDwMasterimageMapper.deleteTDwMasterimageByIds(ctIds);
  }

  /**
   * 删除图片维护信息
   *
   * @param ctId 图片维护ID
   * @return 结果
   */
  @Override
  public int deleteTDwMasterimageById(String ctId) {
    return tDwMasterimageMapper.deleteTDwMasterimageById(ctId);
  }
}
